<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:zj="http://www.zju.edu.cn" exclude-result-prefixes="zj">
  <xsl:import href="../Tk2Base/GlobalVariable.xslt"/>
  <xsl:import href="DetailTemplate_Trans.xslt"/>
  <xsl:import href="DetailFrame.xslt"/>
  <xsl:import href="DetailListFrame.xslt"/>
  <xsl:output method="html" indent="yes"/>
  <xsl:template match="/">
    <html>
      <head>
        <title/>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link rel="stylesheet" type="text/css" href="../css/style.css"/>
        <link rel="stylesheet" type="text/css" href="../themes/default/easyui.css"/>
        <link rel="stylesheet" type="text/css" href="../themes/icon.css"/>
        <script language="JavaScript" src="../js/jquery-1.7.1.min.js"></script>
        <script language="JavaScript" src="../js/jquery.easyui.min.js"></script>
        <script language="JavaScript" src="../js/common.js"></script>
      </head>
      <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
        <div id="floatDiv" style="position: absolute; visibility: hidden; left:0px; top:0px; width:200px; height:200px; z-index:10; overflow: auto; border:solid 1px #003366; background-color: #FFFFEE" class="scrollBar"/>
        <iframe width="200" height="100" name="uploadPop" id="uploadPop" src="../Upload/UploadPage.aspx" scrolling="no" frameborder="0" style="border:solid 1px #333333; background-color: #FFFFF7; visibility:visible; z-index:999; position:absolute; left:-500px; top:0px;"/>
        <table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top" id="contentTD">
              <table width="100%" border="0" cellspacing="0" cellpadding="6" onclick="DocOnClick()">
                <tr>
                  <td class="title" style="padding: 2px">
                    <table border="0" width="100%" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="title" style="padding: 0px">
                          <xsl:call-template name="zj:PageTitle"/>
                        </td>
                        <td align="right">
                          <img src="../images/maintitle.jpg" width="220" height="23"/>
                        </td>
                      </tr>
                      <tr>
                        <td background="../images/fix.gif" colspan="2" height="1"/>
                      </tr>
                    </table>
                    <br/>
                  </td>
                </tr>
                <tr>
                  <td>
                    <table width="100%" border="0" cellpadding="3" cellspacing="0" class="tb-list">
                      <input type="hidden" name="_GUID" id="_GUID" value="{$zj:GUID}"/>
                      <xsl:call-template name="zj:Content"/>
                    </table>
                    <table width="100%" border="0" cellspacing="0" cellpadding="2">
                      <tr>
                        <td height="30">
                          <xsl:call-template name="zj:WhiteSpace"/>
                        </td>
                        <td align="right">
                          <xsl:call-template name="zj:Button"/>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
              <xsl:call-template name="zj:DetailList"/>
            </td>
          </tr>
        </table>
      </body>
    </html>
  </xsl:template>
  <xsl:template name="zj:DetailList">
    <xsl:variable name="DListTable" select="$zj:XmlData/Toolkit/zj:Table[@Style='Table']"/>
    <xsl:if test="count($DListTable) > 0">
      <table cellpadding="2" cellspacing="0" border="0" width="100%">
        <tr>
          <xsl:apply-templates select="$DListTable" mode="zj:DListTitle"/>
          <xsl:variable name="FocusList" select="$DListTable[1]"/>
          <td width="99%">
            <input type="hidden" name="th" value="th{$FocusList/@TableName}"/>
            <input type="hidden" name="td" value="td{$FocusList/@TableName}"/>
          </td>
        </tr>
        <xsl:apply-templates select="$DListTable" mode="zj:DetailList"/>
      </table>
    </xsl:if>
  </xsl:template>
  <xsl:template match="zj:Module" mode="zj:Button">
    <xsl:call-template name="zj:Button"/>
  </xsl:template>
  <xsl:template match="zj:Module[zj:DataSet='ListDetail' or zj:DataSet='ListDetailXml']" mode="zj:Button">
    <xsl:call-template name="zj:CancelButton"/>
  </xsl:template>
</xsl:stylesheet>
